package org.hy.domain.ug;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 可在主页和小组之间共享的post
 * 小组可共享的post的基类
 * @author xwm
 *
 */
public class ShareablePost extends TitledPost {
	
	public static int TABLE_MYCAREER_PROBLEM = 1;
	public static int TABLE_MYINTEREST_PROBLEM = 2;
	public static int TABLE_MYSTATUS = 4;
	public static int TABLE_MYCAREER_SHOW = 5;
	public static int TABLE_MYINTEREST_SHOW = 6;
	public static int TABLE_MYINTEREST_RESEARCH = 7;

	
	
	/**
	 * 来自那种表
	 */
	private Integer fromTable;
	/**
	 * 来自表中哪一行
	 */
	private Integer ftRowid;
	/**
	 * 分享的post
	 */
	private Post sharedPost;
	
	public Integer getFromTable() {
		return fromTable;
	}
	public void setFromTable(Integer fromTable) {
		this.fromTable = fromTable;
	}
	public Integer getFtRowid() {
		return ftRowid;
	}
	public void setFtRowid(Integer ftRowid) {
		this.ftRowid = ftRowid;
	}
	public Post getSharedPost() {
		return sharedPost;
	}
	public void setSharedPost(Post sharedPost) {
		this.sharedPost = sharedPost;
	}
	
	
	@Override
	public void buildToString(ToStringBuilder builder){
		super.buildToString(builder);
		builder.append("fromTable",fromTable).append("ftRowid",ftRowid).append("sharedPost",sharedPost);
	}
}
